'''
Created on 6 Apr 2011

@author: LowG
'''

# NOTE: Must import *, since Django looks for things here, e.g. handler500.
from django.conf.urls.defaults import *
import django.views.defaults

"""
This is where we get started

URLS:
ROOT/shared/ <- root
ROOT/shared/Collection/(view|edit)
- actually edit or view an item
ROOT/admin <- configure access to Portal
ROOT/shared/admin <- setup variables/attributes
"""


urlpatterns = patterns(
                       "shared.views",
                       (r'^$', 'index'),
                       # there must be a better way to do this
                       (r'^/(.+)/', 'view'),
                       # level 2
                       (r'^/(.+)/edit/', 'edit'),
                       # admin
                       (r'^/admin/$', 'admin'),
                       # admin variables
                       (r'^/admin/variable/$', 'admin_variable'),
                       # admin attributes
                       (r'^/admin/attribute/$', 'admin_attribute'),
                       
                       )
                       

